import fetcher from '@http/fetch.js'

/** handleUserAPI */
export const userLogin = (data = {}) => fetcher('/auth/forgot-password', data, 'post')
export const forgetPassWord = (data = {}) => fetcher('/auth/forgot-password', data, 'post')
export const userRegister = (data = {}) => fetcher('/auth/local/register', data, 'post')
export const resetPassword = (data = {}) => fetcher('/auth/reset-password', data, 'post')
export const getUserInfo = (data = {}) => fetcher('/users/me', data, 'get')

/** courseVideoAPI */
export const getHYYResource = (data = {}) => fetcher('/hanyvyans', data, 'get')
export const getXWResource = (data = {}) => fetcher('/xinwenxues', data, 'get')

/** lingNanAPI */
export const getPdfResource = (data = {}) => fetcher('/lingnanwenhuas', data, 'get')

/** performanceAPI */
export const getPerformanceResource = (data = {}) => fetcher('/shows', data, 'get')

/** studentWorkAPI */
export const getStudentWorkData = (data = {}) => fetcher('/student-works', data, 'get')

